package org.ghost.wechat.platform.dto.wechat.material;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * @author 01
 */
public class WeChatUpdateNewsReqDTO implements Serializable {
    private static final long serialVersionUID = 7866918157524943409L;

    /**
     * 要修改的图文消息的id(必需)
     */
    private String mediaId;
    /**
     * 要更新的文章在图文消息中的位置（多图文消息时，此字段才有意义），第一篇为0(必需)
     */
    private Integer index;

    private WeChatAddNewsDTO articles;


    @JsonProperty(value = "media_id")
    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public WeChatAddNewsDTO getArticles() {
        return articles;
    }

    public void setArticles(WeChatAddNewsDTO articles) {
        this.articles = articles;
    }

    @Override
    public String toString() {
        return "WeChatUpdateNewsReqDTO{" +
                "mediaId='" + mediaId + '\'' +
                ", index=" + index +
                ", articles=" + articles +
                '}';
    }
}
